package com.steven.image.dao

import com.steven.image.pojo.UserDetail
import org.apache.ibatis.annotations.Select
import org.apache.ibatis.annotations.Update
import org.springframework.stereotype.Repository

@Repository
interface ImageDao {

    @Update("UPDATE user_detail set iconUrl=#{iconURL} where uid=#{uid}")
    fun updateUserIcon(uid: Long, iconURL: String): Int

    @Select("SELECT iconUrl from user_detail where uid=#{uid}")
    fun queryUserIconUrl(uid: Long): List<UserDetail>
}